package me.riverslob.test.esper.plugin.esperio.rpc.input;

import java.util.Map;

/**
 * <br/>Created on 13-10-14 上午11:46
 *
 * @author 郑治明（zm.zheng@zhuche.com）
 * @since 3.2.2
 */
public class EsperIORPCRemoteService /*extends AbstractRemoteService*/{
    private EsperIORPCRequestHandler handler;
//    @Override
    public Object execute(Object... arg0) {
        if (handler != null && arg0 != null && arg0.length > 0) {
            Map<String, Object> dataMap = (Map<String, Object>) arg0[0];
            handler.handle(dataMap);
        }
        return null;
    }

    public void setHandler(EsperIORPCRequestHandler handler) {
        this.handler = handler;
    }
}
